﻿<UserControl x:Class="StatusToolBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="30" MinHeight="30" d:DesignWidth="300">
    
    <Border>
        
        <Grid VerticalAlignment="Center" Margin="5,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <Button Style="{StaticResource ToolBar_Button}" Command="{Binding Command_ToggleSync}" Grid.Column="0" HorizontalAlignment="Left">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <Path Grid.Column="0" Data="M44.817715,32.701C44.817715,36.424438 43.317719,39.769474 40.880226,42.212898 38.434834,44.649822 35.091141,46.147739 31.369753,46.150341 27.679762,46.150341 24.35157,44.671223 21.919287,42.2715L26.742264,37.44965 13.336,37.44965 13.336,50.854187 17.786488,46.404942C21.270859,49.861279 26.078165,52 31.369753,52 42.028622,51.998199 50.661396,43.359409 50.663998,32.701z M32.635052,12C21.97893,12.002014,13.341001,20.637493,13.341001,31.295L19.187323,31.295C19.189894,27.57238 20.68988,24.227364 23.127359,21.784601 25.567509,19.347088 28.913782,17.849091 32.635052,17.84647 36.379917,17.84647 39.757488,19.373089 42.197472,21.83989L37.58041,26.455275 50.660995,26.455275 50.660995,13.373056 46.330338,17.702539C42.838165,14.183121,37.989204,12,32.635052,12z M32,0C49.6744,0 64,14.3269 64,32 64,49.673199 49.6744,64 32,64 14.3281,64 0,49.673199 0,32 0,14.3269 14.3281,0 32,0z" Stretch="Uniform" Fill="#FF82B93A" Width="16" Height="16" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" Visibility="{Binding SyncEnable,Converter={StaticResource BoolToVisiblity},ConverterParameter=True}">
                        <Path.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <RotateTransform Angle="0" />
                                    <ScaleTransform ScaleX="1" ScaleY="1" />
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>


                    <Path Data="M19.85228,12.08996L12.093,19.849201 24.242323,31.997846 12.094,44.145998 19.852051,51.904958 32.001186,39.756277 44.150543,51.904958 51.909,44.145994 39.760246,31.997501 51.909,19.849201 44.15049,12.08996 32.001431,24.238849z M32,0C49.671021,3.1599484E-07 64,14.329407 64,31.998501 64,49.677606 49.671021,63.997003 32,63.997003 14.328003,63.997003 0,49.677606 0,31.998501 0,14.329407 14.328003,3.1599484E-07 32,0z" Stretch="Uniform" Fill="#FFAE0404" Width="15" Height="15"  Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" Visibility="{Binding SyncEnable,Converter={StaticResource BoolToVisiblity}}">
                        <Path.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <RotateTransform Angle="0" />
                                    <ScaleTransform ScaleX="1" ScaleY="1" />
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                    
                    <TextBlock Grid.Column="1" Text="Enable AutoSync" FontSize="12" Foreground="{StaticResource Font_Brush_Black}" Margin="5,0,0,0" VerticalAlignment="Center" Visibility="{Binding SyncEnable,Converter={StaticResource BoolToVisiblity},ConverterParameter=True}"/>
                    <TextBlock Grid.Column="1" Text="Disable AutoSync" FontSize="12" Foreground="{StaticResource Font_Brush_Black}" Margin="5,0,0,0" VerticalAlignment="Center" Visibility="{Binding SyncEnable,Converter={StaticResource BoolToVisiblity}}"/>
                    
                </Grid>
            
            </Button>

            <Button Style="{StaticResource ToolBar_Button}" Command="{Binding Command_ShowContextMenu}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Grid.Column="1">
                <Image Source="/Tunlr;component/Resources/Images/Icon_Settings.png" Height="18" Margin="2" />
                
            </Button>
        
        
        </Grid>
    </Border>
</UserControl>
